﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BloomFilter
{
    /// <summary>
    /// 过滤器参数接口
    /// </summary>
    /// <typeparam name="TValue"></typeparam>
    public interface IBloomFilterData<TValue>
    {
        /// <summary>
        /// 值的关键分类
        /// </summary>
        string KeyName{get;set;}

        /// <summary>
        /// 值
        /// </summary>
        TValue Value { get; set; }

        /// <summary>
        /// 是否合法
        /// </summary>
        /// <returns></returns>
        bool IsValid();
    }
}
